﻿using UnityEngine;
using System.Collections;

public class MsgCenter : MonoBehaviour
{
    public static MsgCenter Instance { get; private set; }

    void Awake()
    {
        Instance = this;
    }

    public void SendToMsg(MsgBase tmpMsg)
    {

    }

    private void AnasysisMsg(MsgBase tmpMsg)
    {
        ManagerID tmpId = tmpMsg.GetManager();

        switch (tmpId)
        {
            case ManagerID.AssetManager:
                break;
            case ManagerID.AudioManager:
                break;
            case ManagerID.CharatorManager:
                break;
            case ManagerID.GameManger:
                break;
            case ManagerID.NetManager:
                break;
            case ManagerID.NPCManager:
                break;
            case ManagerID.UIManager:
                break;
            case ManagerID.UIManager2:

                break;
        }
    }
}
